package top.wardyan.wbaseswt.control;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;

public class WMenuItem extends MenuItem{

	public WMenuItem(Menu parent, int style) {
		super(parent, style);
	}
	
	public WMenuItem(Menu parent, int style, String text) {
		this(parent, style);
		this.setText(text);
	}
	
	public WMenuItem(Menu parent, int style, String text, SelectionAdapter adapter) {
		this(parent, style, text);
		if(adapter != null) {
			this.addSelectionListener(adapter);
		}
	}
	
	@Override
	protected void checkSubclass() {}

}
